package cn.fatgod.learn.thymeleaf.ast.model;

import cn.hutool.core.util.StrUtil;

/**
 * 类型项
 */
public class TypeItem {
    /**
     * 类型（字符串表示）
     */
    private final String type;

    /**
     * 导入路径列表
     */
    private final String importPath;

    public static TypeItem create(String type) {
        return create(type, StrUtil.EMPTY);
    }

    public static TypeItem create(String type, String importPath) {
        return new TypeItem(type, importPath);
    }

    private TypeItem(String type, String importPath) {
        this.type = type;
        this.importPath = importPath;
    }

    public String getType() {
        return type;
    }

    public String getImportPath() {
        return importPath;
    }
}
